package com.adou.d16.dos;

import com.adou.d16.oos.Student;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class OISTest1 {
    public static void main(String[] args) {
        try(final ObjectInputStream ois = new ObjectInputStream(new FileInputStream("d1-helloword-app\\src\\it12_out.txt"));) {
            final Student stu = (Student)ois.readObject();
            System.out.println(stu);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
